-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix wrong conditional for build custom_rules.tmpl.xml #1544
Conversation
@@ -483,7 +483,7 @@ def make_package(args): | |||
join(res_dir, 'values/strings.xml'), | |||
**render_args) | |||
|
|||
if exists("custom_rules.tmpl.xml"): | |||
if exists(join("templates", "custom_rules.tmpl.xml")): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how this works if you fixed the first path in the exists
condition, but not the render
one which I would have expected to be the same 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi, because os.path.exists check on filesystem and not use jinja2.Environment, render it's a local function that use the jinja2.Environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndreMiras it works because of this line:
join(curdir, 'templates'))) |
templates
, so jinja2 naturally looks in there)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you guys, clear!
@@ -483,7 +483,7 @@ def make_package(args): | |||
join(res_dir, 'values/strings.xml'), | |||
**render_args) | |||
|
|||
if exists("custom_rules.tmpl.xml"): | |||
if exists(join("templates", "custom_rules.tmpl.xml")): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you guys, clear!
Looking good thank you. I'm just restarting the build because it flaky failed and will merge pretty soon |
without this, ant debug stop with message: